<%@ page contentType="text/html;charset=UTF-8" %>
<%@ taglib prefix="s" uri="/struts-tags" %>
<%
	String path = request.getContextPath();
	String basePath = request.getScheme() + "://"
			+ request.getServerName() + ":" + request.getServerPort()
			+ path + "/";
%>
<html>
<head>
<base href="<%=basePath%>">
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>绩效考核系统</title>
<script type="text/javascript" src="scripts/jquery/jquery.js"></script>
<script type="text/javascript" src="scripts/common.js"></script>
<script type="text/javascript">
/**
 * 导航
 */
function main()
{
	showLoad();
	parent.document.getElementById("myIframe").src = "pages/main.jsp";
}

/**
 * 我的资料
 */
function worker(workerCode)
{
	showLoad();
	parent.document.getElementById("myIframe").src = "system/worker-detailMe.action";
}

/**
 * 修改密码
 */
function passwordUpdate()
{
	showLoad();
	parent.document.getElementById("myIframe").src = "pwd-changePwdInit.action";
}

function logout()
{
	if(confirm("确定要退出吗?"))
	{
		return true;
	}
	else
	{
		return false;
	}
}
</script>

<style>
body{
	margin:0px;
	padding: 0px;
	border:0px;
	width: 100%
}
#date {
	font-size: 12px;
	margin-top:3px;
}
a:link {
	text-decoration: none;
}
a:visited {
	text-decoration: none;
}
a:hover {
	text-decoration: none;
}
a:active {
	text-decoration: none;
}

.kind_menu {
	height:25px;
    line-height:25px;
	position:relative;
	top:36;
    left:200;
	width:100%;
	text-align:left;
	color:#656565;
}
.kind_menu a {
	color:#656565; 
	text-align:center; 
	width:85px; 
	font-family:Arial, Helvetica, sans-serif; 
	font-size: 12px;
}
.kind_menu a:hover { 
	color:#ff4300; no-repeat 1px -91px;
	background:url(images/navnbg.gif) 
	no-repeat 1px -93px;
}
.kind_menu span { 
	font-size:10px;  
	color:#cecece; 
	line-height:30px; 
	line-height:26px; 
}

.userStyle {
	width: 100%;
	position: absolute;
	z-index: 1;
	top: 10;
	color: #ffffff;
	text-align: right;
	font-size: 13px;
	line-height: 2.2em;
	height:25px;
}

.version {
	position: absolute;
	z-index: 1;
	top: 10;
	text-align: right;
	line-height: 2.2em;
	height:25px;
	left:250px;
	font-weight:bold;
	font-family:黑体,宋体;
	color:#FFFFFF;
	font-size:12px
}
</style>
</head>
<body>
<form id="topForm"></form>
<s:hidden id="userId" value="%{#session.loginUserInfo.userId}"></s:hidden>
<table border="0" cellpadding="0" cellspacing="0" width="100%">
<tbody>
<tr>
		<td align="left" background="images/logo.gif" height="61" valign="top" width="287px;">
			<div class="version">V1.0.0.0</div>
		</td>
		<td background="images/top_bg.gif" height="61" valign="top">
		<div class="userStyle">
			欢迎您，
			<s:property value="%{#session._login_user_info.userName}"/>
			<s:if test="#session._login_user_info.hasBindWorker && #session._login_user_info.workerName != null">
			(<s:property value="%{#session._login_user_info.workerName}"/>)
			</s:if>&nbsp;&nbsp;
			今天是<label id="spSysDate"></label>&nbsp;
			<script type="text/javascript">
				setLableValue('spSysDate', getSysDateWeek());
				setInterval("setLableValue('spSysDate', getSysDateWeek())",1000);
			</script>
		</div>
		<div class="kind_menu" style="left: 0px;">
			<a href="javascript:void(0)" onclick="main();return false;" target="main">导航</a><span>|</span>
			<a href="javascript:void(0)" onclick="passwordUpdate();return false;" target="main">修改密码</a><span>|</span>
			<s:if test="#session._login_user_info.hasBindWorker">
			<a href="javascript:void(0)" onclick="worker('<s:property value="%{#session._login_user_info.workerCode}"/>');return false;" target="main">我的工作资料</a><span>|</span>
			</s:if>
			<a href="logout.action" target="_top" onclick="return logout();">退出</a>
		</div>
		</td>
  		</tr>
		</tbody>
	</table>
</body>
</html>